
public class yuanzhu {
	private double V,S;
	private int r,h;
	public yuanzhu(int r,int h){
		this.r=r;
		this.h=h;
	}
	public double tijiV(int r,int h){
		V=r*r*3.14*h;
		return V;
	}
	public double mianjiS(int r,int h){
		S=r*r*3.14*2+3.14*2*r*h;
		return S;
	}
}
